package com.zy.ems.common.base;

/**
 * 分页查询语句标识符。
 * 
 * @author Luffy
 *
 */
public class PageStmtUID {
    /**
     * 默认分页查询标识符
     */
    public static final PageStmtUID DEFAULT = new PageStmtUID("findPageList",
            "totalNumber");

    /**
     * 分页查询标识符
     */
    private String pageStmt;

    /**
     * 总数量查询标识符
     */
    private String countStmt;

    private PageStmtUID(String pageStmt, String countStmt) {
        this.pageStmt = pageStmt;
        this.countStmt = countStmt;
    }

    /**
     * 创建分页查询标识符。
     * 
     * @param pageStmt
     * @param countStmt
     * @return
     */
    public static PageStmtUID create(String pageStmt, String countStmt) {
        return new PageStmtUID(pageStmt, countStmt);
    }

    public String getPageStmt() {
        return pageStmt;
    }

    public String getCountStmt() {
        return countStmt;
    }

}
